package com.lovo.psc.mapper;

import com.lovo.psc.Uto.BookBean;
import com.lovo.psc.entity.SupplierPurchase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.psc.entity.Triumph;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2022-07-08
 */
@Mapper
public interface SupplierPurchaseMapper extends BaseMapper<SupplierPurchase> {

    public void upDateNumStateBy(@Param("BookNumber") Integer BookNumber, @Param("supplierNumber") Integer supplierNumber);

    public void upDateNumState(@Param("BookNumber") Integer BookNumber, @Param("supplierNumber") Integer supplierNumber);

    public Triumph findBookByTriumphSupplierNumber(@Param("BookNumber")Integer BookNumber, @Param("supplierNumber") Integer supplierNumber);

    public void del(Integer BookNumber);

    /**
     * 查询没有报价的标书id
     * @return
     */
    int[] findFK();
}
